<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Download page</title>
    <link rel="stylesheet" type="text/css" href="../resource/css/Login.css"/>
    <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"/>
</head>
<body>
<div id="library">
<%--<a>Select the file to download</a>--%>

<table>
    <tr>
        <th colspan="2" ><nobr>Select the file to download</nobr></th>

    </tr>
    <tr>
        <td><nobr>File name</nobr></td>
        <td><nobr>File size</nobr></td>
    </tr>
    <c:forEach items="${fileList}" var="downFile">
        <tr>
            <td>${downFile.filename}&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td>${downFile.filesize}&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td align="center"><button class="btn"><a href="/downloadServlet?file_url=${downFile.file_url}">Download File</a></button></td>
        </tr>
    </c:forEach>
</table>
</div>>
</body>
</html>
